//package com.example.mongo.appmongo.config;
//
//import com.example.mongo.appmongo.utils.TenantContext;
//import com.mongodb.ClientSessionOptions;
//import com.mongodb.ConnectionString;
//import com.mongodb.client.ClientSession;
//import com.mongodb.client.MongoClient;
//import com.mongodb.client.MongoDatabase;
//import org.springframework.data.mongodb.core.SimpleMongoClientDatabaseFactory;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @author sjw
// * @className UserSimpleMongoClientDatabaseFactory
// * @date 2021/9/30 8:09
// * @description: TODO
// */
//public class UserSimpleMongoClientDatabaseFactory extends SimpleMongoClientDatabaseFactory {
//
//    public UserSimpleMongoClientDatabaseFactory(MongoClient mongoClient, String databaseName) {
//        super(mongoClient, databaseName);
//    }
//
//    protected MongoClient getMongoClient() {
//        return TenantContext.getMongoClient();
//    }
//
//
//
//
//
//
//}
